ga.view.examples.simple
Class SimpleObjectPhenotypeGenerator

java.lang.Object
  extended by ga.view.examples.simple.SimpleObjectPhenotypeGenerator
All Implemented Interfaces:
IPhenotypeGenerator<SimpleObjectIndividual,com.jme3.scene.Geometry>

public class SimpleObjectPhenotypeGenerator
extends java.lang.Object
implements IPhenotypeGenerator<SimpleObjectIndividual,com.jme3.scene.Geometry>

Phenotype generator for the simple object example.

Since:
12.08.2012
Author:
Stephan Dreyer

Field Summary
private  com.jme3.asset.AssetManager assetManager
           
 
Constructor Summary
SimpleObjectPhenotypeGenerator()
          Instantiates a new simple object phenotype generator.
 
Method Summary
 com.jme3.scene.Geometry createPhenotype(SimpleObjectIndividual individual)
          Creates a phenotype from a genotype.
 void setAssetManager(com.jme3.asset.AssetManager assetManager)
          Setter for the asset manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assetManager

private com.jme3.asset.AssetManager assetManager
Constructor Detail

SimpleObjectPhenotypeGenerator

public SimpleObjectPhenotypeGenerator()
Instantiates a new simple object phenotype generator.

Since:
12.08.2012
Method Detail

setAssetManager

public void setAssetManager(com.jme3.asset.AssetManager assetManager)
Description copied from interface: IPhenotypeGenerator
Setter for the asset manager.

Specified by:
setAssetManager in interface IPhenotypeGenerator<SimpleObjectIndividual,com.jme3.scene.Geometry>
Parameters:
assetManager - The asset manager.

createPhenotype

public com.jme3.scene.Geometry createPhenotype(SimpleObjectIndividual individual)
Description copied from interface: IPhenotypeGenerator
Creates a phenotype from a genotype. (Decode function)

Specified by:
createPhenotype in interface IPhenotypeGenerator<SimpleObjectIndividual,com.jme3.scene.Geometry>
Parameters:
individual - Individual that contains the genotype.
Returns:
Phenotype as JME spatial.